package com.jfdesgagne.traklib.geom {
	import flash.geom.Rectangle;

	/**
	 * @author jdesgagne
	 */
	public class TrakRectangle extends Rectangle {
		protected var __isects:Array;		protected var __id:int;		protected var __event:String;		protected var __life:int;		protected var __integarateTarget:TrakRectangle;

		public function union_rect(toUnion:Rectangle):TrakRectangle {
			return new TrakRectangle(super.union(toUnion));
		}

		public function TrakRectangle(_rect:Rectangle) {
			
			super(_rect.x, _rect.y, _rect.width, _rect.height);
		}

		public function get isects():Array {
			return __isects;
		}

		public function set isects(_isects:Array):void {
			__isects = _isects;
		}

		public function get id():int {
			return __id;
		}

		public function set id(_id:int):void {
			__id = _id;
		}

		public function get event():String {
			return __event;
		}

		public function set event(_event:String):void {
			__event = _event;
		}

		public function get life():int {
			return __life;
		}

		public function set life(_life:int):void {
			__life = _life;
		}

		public function get integarateTarget():TrakRectangle {
			return __integarateTarget;
		}

		public function set integarateTarget(_integarateTarget:TrakRectangle):void {
			__integarateTarget = _integarateTarget;
		}
	}
}
